// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.asm;

import org.objectweb.asm.MethodVisitor;

/**
 * Method adapter fixing the problem with label sharing.
 * 
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public class MethodAdapter extends org.objectweb.asm.MethodAdapter {
  public MethodAdapter(MethodVisitor out) {
    super((out instanceof LabelFixingMethodVisitor) ? out : new LabelFixingMethodVisitor(out));
  }
  
  protected MethodVisitor out() {
    return mv;
  }
}
